package controller;

import java.io.IOException;

import model.ContactsModel;
import view.View;

public class Main {
	public static void main(String[] arg) throws IOException {
		ContactsModel model = new ContactsModel();
		View view = new View(model);
		Controller controller = new Controller(model, view);
		
		view.buttonCreateContact.addActionListener(controller);
		view.buttonAddContact.addActionListener(controller);
		view.buttonDeleteContact.addActionListener(controller);
		view.buttonModifyContact.addActionListener(controller);
		view.buttonClearContact.addActionListener(controller);
		view.addWindowListener(controller);
		view.textFieldImage.addMouseListener(controller);
		view.buttonDisplayByAlphabetical.addActionListener(controller);
		view.buttonDisplayByGroup.addActionListener(controller);
		view.buttonDisplayByCreatingTime.addActionListener(controller);
		view.listDisplayerContactPersonName.addMouseListener(controller);

	}
}
